from collections import namedtuple
User=namedtuple('user',['name','age','height'])
user1=User(name='bobby',age=29,height=175)
user_tuple=('bobby',29,175)
user2=User(*user_tuple)
Userplus=namedtuple('user',['name','age','height','edu'])
user3=Userplus(*user_tuple,'master')
user_dict={
    'name':'bobby',
    'age':29,
    'height':175
}
user4=Userplus(**user_dict,edu='master')
print(user1.name,user2.age,user3.height,user4.edu)
user5=User._make(user_tuple)
user_list=['bobby',29,175]
user6=User._make(user_list)
user7=User._make(user_dict.values())
user_info_dict=user4._asdict()
name,age,*other=user4
print(name,age,*other)
